/**
 * 建筑系统配置
 * 包含所有可建造的建筑及其属性
 */

export const buildings = [
  // 基础建筑
  {
    id: 'house',
    name: '木屋',
    icon: '🏠',
    description: '提供休息和存储空间',
    built: false,
    level: 1,
    cost: { wood: 20 },
    production: '休息效率 +50%',
    prerequisites: [],
    maxLevel: 3,
    upgradeCost: { wood: 30, stone: 15 }
  },
  {
    id: 'workshop',
    name: '工作台',
    icon: '🔨',
    description: '制作工具和物品',
    built: false,
    level: 1,
    cost: { wood: 15, stone: 10 },
    production: '制作效率 +100%',
    prerequisites: [],
    maxLevel: 2,
    upgradeCost: { wood: 25, stone: 20, metal: 5 }
  },
  {
    id: 'fire_pit',
    name: '篝火',
    icon: '🔥',
    description: '提供温暖和烹饪',
    built: false,
    level: 1,
    cost: { wood: 10, stone: 5 },
    production: '夜间温暖 +100%',
    prerequisites: [],
    maxLevel: 1
  },
  {
    id: 'storage',
    name: '储物箱',
    icon: '📦',
    description: '增加存储容量',
    built: false,
    level: 1,
    cost: { wood: 12, vine: 3 },
    production: '存储容量 +50',
    prerequisites: [],
    maxLevel: 3,
    upgradeCost: { wood: 20, stone: 10 }
  },
  
  // 中级建筑
  {
    id: 'kitchen',
    name: '厨房',
    icon: '🍳',
    description: '高级烹饪设施',
    built: false,
    level: 1,
    cost: { wood: 25, stone: 15, metal: 5 },
    production: '烹饪效率 +200%',
    prerequisites: ['workshop', 'fire_pit'],
    maxLevel: 2,
    upgradeCost: { wood: 40, stone: 25, metal: 10 }
  },
  {
    id: 'garden',
    name: '菜园',
    icon: '🌱',
    description: '种植食物',
    built: false,
    level: 1,
    cost: { wood: 15, mud: 20, water: 10 },
    production: '食物产量 +3/天',
    prerequisites: ['house'],
    maxLevel: 3,
    upgradeCost: { wood: 25, mud: 30, water: 15 }
  },
  {
    id: 'water_collector',
    name: '雨水收集器',
    icon: '💧',
    description: '收集雨水',
    built: false,
    level: 1,
    cost: { wood: 20, stone: 10, vine: 5 },
    production: '淡水产量 +2/天',
    prerequisites: ['workshop'],
    maxLevel: 2,
    upgradeCost: { wood: 30, stone: 15, vine: 8 }
  },
  
  // 高级建筑
  {
    id: 'forge',
    name: '熔炉',
    icon: '🔥',
    description: '冶炼金属',
    built: false,
    level: 1,
    cost: { stone: 30, metal: 10, wood: 20 },
    production: '金属加工 +300%',
    prerequisites: ['workshop', 'kitchen'],
    maxLevel: 2,
    upgradeCost: { stone: 50, metal: 20, wood: 30 }
  },
  {
    id: 'library',
    name: '图书馆',
    icon: '📚',
    description: '研究科技',
    built: false,
    level: 1,
    cost: { wood: 40, stone: 20, crystals: 5 },
    production: '研究速度 +150%',
    prerequisites: ['house', 'workshop'],
    maxLevel: 2,
    upgradeCost: { wood: 60, stone: 30, crystals: 10 }
  },
  {
    id: 'defense_tower',
    name: '防御塔',
    icon: '🏰',
    description: '防御野兽',
    built: false,
    level: 1,
    cost: { stone: 50, wood: 30, metal: 15 },
    production: '防御力 +100%',
    prerequisites: ['forge'],
    maxLevel: 3,
    upgradeCost: { stone: 80, wood: 50, metal: 25 }
  }
] 